package com.gc.server.service;

import com.gc.server.entity.ScoreEntity;
import com.gc.server.entity.TodoEntity;
import com.yf.service.BaseService;

import java.math.BigDecimal;
import java.util.List;

/**
 * 评分Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Mar 10 11:17:45 CST 2020
 */
public interface ScoreService extends BaseService<ScoreEntity> {


    /**

     List<ScoreVo> queryListVo(ScoreVo scoreVo);

     ScoreVo getVo(Long id);
     **/

    /***********BACK***********/

    /***********API***********/

    /**
     * 管理员评分
     * @param todoId
     * @param name
     * @param point
     * @param adminId
     * @param userId
     * @param adminName
     * @param remark
     * @return
     */
    void score(Long todoId, String[] names, BigDecimal[] points, Long adminId, String[] remarks);

    TodoEntity preScore(Long todoId, String[] names, BigDecimal[] points,String[] remarks);

    /**
     * 找出日程的评分
     * @param todoId
     * @return
     */
    List<ScoreEntity> findByTodoId(Long todoId);
}
